<template>
  <div class="app">
    <slot name="content">

      <div class="Profile-user">
        <div class="Profile-img">
          <img src="http://124.223.73.204:8080/img/profile/avatar.png" alt="" />
        </div>
        <div class="Profile-text">
          <div class="Profile-name">游客</div>
        </div>
          <van-tabbar route class="tabber-item">
              <van-tabbar-item  replace to="/login">
              <span>去登录</span>
              </van-tabbar-item>
            </van-tabbar>
      </div>

    </slot>
  </div>
</template>

<script>
export default {

}
</script>

<style scoped lang="less">
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.Profile-user {
  z-index: 0;
  position: absolute;
  background: #fff;
  width: 85%;
  height: 55%;
  top: 83px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0px 0px 10px 3px #ddd;
  margin: 50px auto 0;
  padding: 0 20px;
  padding-top: 0;
  text-align: center;
  font-size: 13px;
     .tabber-item {
      position:fixed;
      left: 40%;
      top: 50%;
      width: 70px;
       margin: 0 auto;
       span {
        margin: 0 auto;
        width: 70px;
        line-height: 30px;
        display: block;
        height: 100%;
        border-radius: 10px;
        color: #fff;
        padding: 2px 15px;
        background: #21b97a;
        font-size: 12px;
      }
    }
  .Profile-text {
    padding-top: 15px;
    .Profile-name {
      margin-top: -30px;
      margin-bottom: 10px;
    }

  }
  .Profile-img {
    position: relative;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    border: solid 5px #f5f5f5;
    display: inline-block;
    box-shadow: 0px 2px 2px #bdbdbd;
    img {
      width: 100%;
      height: 100%;
    }
  }
}
</style>
